//
//  ErrorCode.h
//  Dingdong
//
//  Created by 程强 on 16/11/23.
//  Copyright © 2016年 程强. All rights reserved.
//

#ifndef ErrorCode_h
#define ErrorCode_h

typedef NS_ENUM(NSInteger, DingDongErrorCode) {
    DingDongErrorCodeSuccess = 0,
    DingDongErrorCodeEmailUsed = 1,
    DingDongErrorCodeSystemError = 2,
    DingDongErrorCodeTokenNil = 2,
    DingDongErrorCodeNoNet = 100,
    DingDongErrorCodeFailed = 101,
};


/*
 SUCCESS("00000","success"),//成功
	SYSERR("00001","系统异常"),//异常
	P_HEAD_0001("10001", "head异常"),
	P_PARAM_0002("10002", "参数异常"),
	P_SIGN_0003("10003", "协议处理异常"),
	P_BODY_0004("10004", "http请求缺少body"),
	P_NO_SIGN("10005", "签名缺失"),
	SIGN_ERROR("10005", "签名错误"),
	METHOD_NOT_SUPPORT("10006", "request method not support"),
	JSON_CONVERT_ERR("20000", "json格式错误，转换异常"),
	ACCESS_TOKEN_EMPTY("20001", "accessToken不能为空"),
	ACCESS_TOKEN_INVALID("20002", "accessToken无效或过期,请重新登陆"),
	
	EMAIL_HASE_BEEN_USED("30001", "email has been used"),
	PASSWORD_ERROR("30002","Password Format is not Correct"),
	NO_USER("30003", "user does not exist"),
	PASSWORD_MUST_SAME("30004", "The passwords you entered must be the same"),
	IDENTIFYING_CODE_ERROR("30005", "identifying code error"),
 */

#endif /* ErrorCode_h */
